<?php
$DocumentationOld   = gpc_getStringPost('DocumentationOld');
$PriceBoardOld      = gpc_getStringPost('PriceBoardOld');

$file_Documentation = gpc_getFile('DocumentationFile');
$file_PriceBoard    = gpc_getFile('PriceBoardFile');


$namefile           = UploadFile($folder_docs,$file_Documentation);
if($namefile)
{
    $rs = saveConfig('DocumentationFile',$namefile);  
    if(is_file('../'.$folder_docs.$DocumentationOld) && $DocumentationOld!=$namefile && $rs) 
    {
        @unlink('../'.$folder_docs.$DocumentationOld);    
    }      
}

$namefile           = UploadFile($folder_docs,$file_PriceBoard);
if($namefile)
{
    $rs = saveConfig('PriceBoardFile',$namefile);
    if(is_file('../'.$folder_docs.$PriceBoardOld) && $DocumentationOld!=$namefile && $rs) 
    {
        @unlink('../'.$folder_docs.$PriceBoardOld);    
    } 
}

$msg = "Update Success !";
page_transfer($msg,$pagetr);
exit();
?>